﻿using DevExpress.ExpressApp.DC;
using DevExpress.Persistent.Base;

namespace EasyXaf.LowCode.WorkflowEditors.Models.Activities;

[DomainComponent]
[ImageName("WF_Break")]
[XafDisplayName("中断(Break)")]
[ActivityOrder(60)]
[ActivityGroup(ActivityGroupConsts.CommonGroupName)]
[DependentContainer(typeof(ForEachActivity))]
[DependentContainer(typeof(WhileActivity))]
public class BreakActivity : Activity, IEndActivity
{
    public override string ImageName => "WF_Break";

    public override string Color => "#C0392B";

    public override bool AllowMove => false;

    public override bool AllowCopy => false;

    public override bool AllowValidate => false;

    public BreakActivity(IWorkflow workflow, ISequence sequence)
        : base(workflow, sequence)
    {
        Caption = "中断";
    }
}
